import request from "@/utils/request";

// 获得底薪配置分页
export function getSalaryConfPage(query) {
  return request({
    url: "/store/salary/page",
    method: "get",
    params: query,
  });
}

// 创建底薪配置
export function CreateSalaryConfPage(data) {
  return request({
    url: "/store/salary/create",
    method: "post",
    data: data,
  });
}

// 更新底薪配置
export function UpdateSalaryConfPage(data) {
  return request({
    url: "/store/salary/update",
    method: "put",
    data: data,
  });
}

// 获得底薪配置
export function getSalaryConfInfo(query) {
  return request({
    url: "/store/salary/get",
    method: "get",
    params: query,
  });
}

// 删除底薪配置
export function DeleteSalaryConfPage(query) {
  return request({
    url: "/store/salary/delete",
    method: "delete",
    params: query,
  });
}

// 完成率配置查询
export function getSalaryConQuery(query) {
  return request({
    url: "/store/salary-conf/query",
    method: "get",
    params: query,
  });
}

// 完成率配置新增修改
export function updateAddSalaryConf(data) {
  return request({
    url: "/store/salary-conf/updateAdd",
    method: "post",
    data: data,
  });
}

// 完成率贡献值分页查询
export function getproContPage(query) {
  return request({
    url: "/store/proCont/page",
    method: "get",
    params: query,
  });
}

// 获取贡献值类型
export function getSalaryTypeList(query) {
  return request({
    url: "/store/proCont/getSalaryTypeList",
    method: "get",
    params: query,
  });
}

// // 导入类目金额查询完成状态
export function ImportProCont(query) {
  return request({
    url: "/store/proCont/import/finish",
    method: "get",
    params: query,
  });
}

// 导入类目金额回执下载
export function ImportProContDown(query) {
  return request({
    url: "/store/proCont/import/finish/down",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 根据完成率类型获取导入模板
export function getImportTemplate(data) {
  return request({
    url: "/store/proCont/import/template",
    method: "post",
    data: data,
    responseType: "blob",
  });
}

// 导入完成率贡献值
export function importProContFinish(type) {
  return request({
    url: "/store/proCont/import/" + type,
    method: "post",
    data: data,
  });
}

// 单项确认
export function SureProContConfirm(data) {
  return request({
    url: "/store/proCont/confirm",
    method: "post",
    data: data,
  });
}

// 批量确认
export function SureProContConfirmBatch(data) {
  return request({
    url: "/store/proCont/confirm/batch",
    method: "post",
    data: data,
  });
}

// 新增
export function CreateProCont(query) {
  return request({
    url: "/store/proCont/create",
    method: "post",
    data: query,
  });
}

// 修改
export function UpdateProCont(data) {
  return request({
    url: "/store/proCont/update",
    method: "post",
    data: data,
  });
}

// 查询用户列表数据
export function userInterviewer(query) {
  return request({
    url: "/system/user/getUserSelect/interviewer",
    method: "get",
    params: query,
  });
}

// 删除
export function DeleteProCont(query) {
  return request({
    url: "/store/proCont/delete",
    method: "delete",
    params: query,
  });
}

// 获得定时任务日志分页
export function getJobLogPage(query) {
  return request({
    url: "/order/job/log/page",
    method: "get",
    params: query,
  });
}
